<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动</title>
		
		<style>
			.fu{
				width: 400px;
				height: 100px;
				border: 5px solid #000;
			}
			.fu > div{
				width:100px;
				height: 100px;
				border:1px solid #f00;
				
			}
			.z1{
				background-color:rgba(255, 0, 0, 0.5);
				float: right;
			}
			.z2{
				background-color:rgba(0, 255, 0, 0.5);
				float: left;
			}
			.z3{
				background-color:rgba(0, 0, 255, 0.5);
				float: left;
			}
			
		</style>
		
		
	</head>
	<body>
		
		<div class="fu">
			<div class="z1"></div>
			<div class="z2"></div>	
			<div class="z3"></div>
		</div>
		
		
	</body>
</html>